const { defineConfig } = require('@vue/cli-service')

// vue.config.js
module.exports = {
  devServer: {
    port: 9003,
    host: '0.0.0.0',
    open: {
      target: 'http://localhost:9003',
      app: {
        name: 'chrome'
      }
    },
    proxy: {
      '/api': {
        target: 'http://localhost:6003',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  },
  configureWebpack: {
    module: {
      rules: [
        {
          test: /\.m?js$/,
          resolve: {
            fullySpecified: false
          }
        }
      ]
    }
  }
}